﻿@page
@inject WXWorkSvc.Third.WXWork3rd wx
@model OpenPms.Areas.D.Pages.Setup.WXMsg.EditModel
@{
    ViewData["Title"] = "编辑";
}
<form id="FormPost" method="post">
    <div class="weui-cells weui-cells_form">
        @for (int i = 0; i < Model.Items.Count; i++)
        {
            <div class="weui-cell weui-cell_switch">
                <input type="hidden" asp-for="Items[i].UserId" />
                <div class="weui-cell__bd">@Html.Raw( Model.Items[i].UserName)</div>
                <div class="weui-cell__ft">
                    <input asp-for="Items[i].IsReceive" class="weui-switch" type="checkbox" />
                </div>
            </div>
        }
    </div>
    <wx-buttons asp-link-text-1="保存" asp-link-type-1=EButtonType.Primary asp-link-text-2="取消" asp-page-2="./Index" />
</form>
@section Scripts {
    @Html.Raw(await wx.GetAgentJsConfigAsync(Request, User.GetCorpId()))

    @{
        await Html.RenderPartialAsync("_ValidationScriptsPartial");
    }
    
}